<div class="row gx-5 justify-content-center" data-diy="place" data-diy-id="${path}">
	<div class="col-lg-8 col-xl-6">
		<div class="text-center">
			<h2 class="fw-bolder">${(metadata.extendData.title)!}</h2>
			<p class="lead fw-normal text-muted mb-5">${(metadata.extendData.description)!}</p>
		</div>
	</div>
</div>
<@cms.category id=metadata.extendData.category>
<div class="row gx-5" data-diy="place" data-diy-id="${path}">
	<@import path="/fragment/tools.ftl" namespace="t"/><#-- 工具 -->
	<@cms.contentList categoryId=object.id containChild=true pageSize=3>
		<#list page.list as a>
			<@t.merge 'categoryIds' a.categoryId/>
			<@t.merge 'userIds' a.userId/>
		</#list>
		<@cms.category ids=t.categoryIds!><#assign categoryMap=map!/></@cms.category>
		<@sys.user ids=t.userIds!><#assign userMap=map!/></@sys.user>
		<#list page.list as a>
	<div class="col-lg-4 mb-5">
		<div class="card h-100 shadow border-0">
			<#if a.cover?has_content>
				<img class="card-img-top" src="${a.cover}" alt="${a.title}" />
			</#if>
			<div class="card-body p-4">
				<div class="badge bg-primary bg-gradient rounded-pill mb-2">${categoryMap[a.categoryId?string].name}</div>
				<a class="text-decoration-none link-dark stretched-link" href="${a.url}"><h5 class="card-title mb-3">${a.title}</h5></a>
				<p class="card-text mb-0">${a.description!}</p>
			</div>
			<div class="card-footer p-4 pt-0 bg-transparent border-top-0">
				<div class="d-flex align-items-end justify-content-between">
					<#if userMap[a.userId?string]?has_content>
					<div class="d-flex align-items-center">
						<img class="rounded-circle me-3 avatar" src="${userMap[a.userId?string].cover!(site.sitePath+'assets/images/avatar.png')}" alt="${userMap[a.userId?string].nickname!}" />
						<div class="small">
							<div class="fw-bold">${userMap[a.userId?string].nickname!}</div>
							<div class="text-muted">${a.publishDate?date} &middot; ${a.clicks} 阅读</div>
						</div>
					</div>
					</#if>
				</div>
			</div>
		</div>
	</div>
	</#list>
	</@cms.contentList>
</div>
</@cms.category>